package xyz.xiangyushui.javaBean.user;

public enum Role {
	member,admin,employee,employeeLeader,manager;
	
	private Role(){}
	
	public static Role getRole(int i){
		Role result = null;
		for(Role role:Role.values()){
			if(role.ordinal()==i){
				result=role;
			}
		}
		return result;
	}
}
